//
//  LanguageManager.h
//  TenMinDemo
//
//  Created by Shawn Li on 2021/3/11.
//  Copyright © 2021 CYXiang. All rights reserved.
//

#import <Foundation/Foundation.h>
#define LCLocalizedString(key, table) [LanguageManager getStringForKey:key withTable:table]
#define LCLocalString(key) (LCLocalizedString(key, nil))
NS_ASSUME_NONNULL_BEGIN

@interface LanguageManager : NSObject
/// 获取当前资源文件
+ (NSBundle *)bundle;
/// 初始化语言文件
+ (void)initUserLanguage;
/// 获取应用当前语言
+ (NSString *)userLanguage;
/// 获取应用当前语言的显示名
+ (NSString *)userLanguageShowName;
/// 设置当前语言
+ (void)setUserlanguage:(NSString *)language;
/// 通过Key获得对应的string
+ (NSString *)getStringByKey:(NSString *)key;

+ (NSString *)getStringForKey:(NSString *)key withTable:(NSString * __nullable)table;

+ (BOOL)isEnglish;
@end

NS_ASSUME_NONNULL_END
